/**
 * @file spl06.h
 * @brief SPL06 Barometer driver for H743-V2
 */

#ifndef __SPL06_H
#define __SPL06_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

typedef struct {
    float pressure;      // Pa
    float temperature;   // °C
    float altitude;      // m
    uint64_t timestamp;
} SPL06_Data_t;

int SPL06_Init(void);
int SPL06_ReadData(SPL06_Data_t *data);

#ifdef __cplusplus
}
#endif

#endif /* __SPL06_H */

